﻿ <%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Change Password.aspx.cs" Inherits="Change_Pasword2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    
    <style type="text/css">
        .style3
        {
            font-size: small;
            height: 25px;
        }
        .style5
        {
            text-align: left;
        }
        .style7
        {
            text-align: left;
            height: 72px;
            background-color: #E3EAEB;
        }
        .style10
        {
            width: 205px;
            height: 73px;
            background-color: #465767;
        }
        .style13
        {
            width: 84%;
            height: 289px;
        }
        .style14
        {
            width: 205px;
            color: #FFFFFF;
            height: 73px;
            background-color: #465767;
        }
        .style15
        {
            height: 73px;
            background-color: #E3EAEB;
        }
        .style17
        {
            height: 73px;
            text-align: left;
            background-color: #E3EAEB;
        }
        .style18
        {
            width: 205px;
            color: #FFFFFF;
            height: 72px;
            background-color: #465767;
        }
        .style19
        {
            height: 72px;
            background-color: #E3EAEB;
        }
        .style20
        {
            height: 72px;
            background-color: #E3EAEB;
            width: 225px;
        }
        .style21
        {
            text-align: left;
            height: 72px;
            background-color: #E3EAEB;
            width: 225px;
        }
        .style22
        {
            height: 73px;
            background-color: #E3EAEB;
            width: 225px;
        }
    </style>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <table class="style13"align=center>
        <tr>
            <td class="style3" colspan="3" 
                style="color: #FFFFFF; background-color: #506272">
                <strong>Change Password</strong></td>
        </tr>
        <tr>
            <td class="style18">
                Current
                Password</td>
            <td class="style20" style="text-align: left">
                <asp:TextBox ID="CurrentPassword" runat="server" CssClass="style5" 
                    Width="204px" EnableViewState="False" TextMode="Password"></asp:TextBox>
            </td>
            <td class="style19" style="text-align: left">
                <asp:Label ID="currentpassworderror" runat="server" Text="Label error" Visible="False" 
                    ForeColor="Red"></asp:Label>
                <br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="CurrentPassword" ErrorMessage="Required" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style18">
                New Password</td>
            <td class="style21">
                <asp:TextBox ID="NewPassword" runat="server" CssClass="style5" Width="204px" 
                    TextMode="Password" EnableViewState="False"></asp:TextBox>
                &nbsp;</td>
            <td class="style7">
                <asp:CompareValidator ID="CompareValidator2" runat="server" 
                    ControlToCompare="CurrentPassword" ControlToValidate="NewPassword" 
                    ErrorMessage="New Password cannot be the same." ForeColor="Red" 
                    Operator="NotEqual"></asp:CompareValidator>
            &nbsp;<br />
                <asp:Label ID="newpassworderror" runat="server" Text="Label error" Visible="False" 
                    ForeColor="Red"></asp:Label>
                <br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="NewPassword" ErrorMessage="Required" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style14">
                Confirm New Password</td>
            <td style="text-align: left" class="style22">
                <asp:TextBox ID="ConfirmPassword" runat="server" CssClass="style5" 
                    Width="204px" TextMode="Password" EnableViewState="False"></asp:TextBox>
                &nbsp;</td>
            <td style="text-align: left" class="style15">
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="NewPassword" ControlToValidate="ConfirmPassword" 
                    ErrorMessage="Confirm Password Not Matched" ForeColor="Red"></asp:CompareValidator>
                <br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="ConfirmPassword" ErrorMessage="Required" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style10">
                &nbsp;</td>
            <td class="style17">
                <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" Text="Submit" 
                    Height="40px" Width="81px" style="text-align: left" />
            </td>
            <td class="style17" align="left">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

